import Vue from 'vue'
import Router from 'vue-router'
import App from '../App'
import Home from '../page/home/home'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      component: App,
      children:[
      	// 地址为空时跳转home页面
      	{
      		path:'',
      		redirect:'/home'
      	},
      	// 首页城市列表页
      	{
      		path:'/home',
      		component:Home
      	}
      ]
    }
  ]
})

export default router;